package com.sxm.yiwei.base;

import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;

import com.sxm.yiwei.beans.pinche.Order;

import java.util.ArrayList;


/**
 * Created by Administrator on 2017/10/16.
 */

class FatherAdapter extends BaseAdapter{
    private final LayoutInflater inflater;
    private ArrayList<Order> beanList;
    private Context context;

    public FatherAdapter(ArrayList<Order> beanList, Context context) {
        this.beanList = beanList;
        this.context = context;
        inflater = LayoutInflater.from(context);
    }

    @Override
    public int getCount() {
        return beanList.size();
    }

    @Override
    public Object getItem(int i) {
        return null;
    }

    @Override
    public long getItemId(int i) {
        return 0;
    }

    @Override
    public View getView(int i, View view, ViewGroup viewGroup) {
        ViewHolder holder;
        if(view==null){
            holder=new ViewHolder();
        }
        return view;
    }
    private class ViewHolder{

    }
    private int getItemLayoutId(){
        return 0;
    }
}
